package com.intellij.ide.license.idea;

import com.intellij.ide.license.LicenseFactory;
import com.intellij.ide.license.LicenseMessages;
import com.intellij.ide.license.impl.GeneralLicenseManager;
import com.intellij.ide.license.impl.JetprofileSource;
import com.intellij.ide.license.ui.LicenseMessagesImpl;

public class IdeaLicenseManager extends GeneralLicenseManager {
    private static final LicenseMessagesImpl licenseMessageImpl = new IdeaLicenseMessagesImpl();

    @Override
    public LicenseFactory createLicenseFactory() {
        if (this.licenseFactory == null) {
            this.licenseFactory = new IdeaLicenseFactoryImpl(licenseMessageImpl);
        }
        return this.licenseFactory;
    }

    protected JetprofileSource C() {
        return new JetprofileSource(this.licenseFactory, this, "II", 1, null);
    }

    @Override
    protected LicenseMessages getLicenseMessages() {
        return licenseMessageImpl;
    }
}
